<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/3/20
  Time: 10:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
  <style type="text/css">
      h1{color: red; text-align: center; size:7px;}
    p{color: green;text-align: center; size:5px;}
  </style>
</head>
<body>
<%!int Num = 0; %>
<%
  if (session.isNew()){
      session.setAttribute("Num", Num);
      Num +=1;
  }
%>
<h1>session计算器</h1>
<br>
<p>
    您是第<%=session.getAttribute("Num") %>个访问本网站用户
</p>
</body>
</html>
